<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $top_title ?> - <?php echo _conf( 'WEB_SITE_NAME' ) ?></title>
<script src="res/js/prototype.js"></script>
<script src="res/js/core.js"></script>
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
</head>

<body class="my">
<form action="?a=admin_setting_save" method="POST" id="admin_setting_form">
<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" height="400px" align="center">
	<tr>
		<td class="top">
		<!-- main -->
		<h3>基本信息</h3><a name="name_logo"></a>
		<p class="h3">网站名称和Logo</p>
		<table width="100%" >
			<tr>
				<td width="100px" >
					站名<br>
				</td>
				<td class="top">
					<input name="WEB_SITE_NAME" style="width:300px" >
				</td>
				<td>
					<span class="explain">网站的名字，将显示在导航、版权和标题等处</span>
				</td>
			</tr>

			<tr>
				<td width="100px" >
					域名<br>
				</td>
				<td class="top">
					<input name="WEB_SITE_DOMAIN" style="width:300px" >
				</td>
				<td>
					<span class="explain">网站域名，不用包含http://</span>
				</td>
			</tr>

			<tr>
				<td width="100px" >
					URL<br>
				</td>
				<td class="top" width="300px">
					<input name="WEB_SITE_ROOT_URL" style="width:300px" >
				</td>
				<td>
					<span class="explain">访问网站时用到的URL，比如http://webmagik.cn</span>
				</td>
			</tr>

			<tr>
				<td width="100px" >
					LOGO<br>
				</td>
				<td class="top">
					<input name="WEB_SITE_LOGO_URL" style="width:300px" >
				</td>
				<td>
					<span class="explain">网站LOGO的URL，比如http://webmagik.cn/res/img/logo.gif</span>
				</td>
			</tr>

			
			<tr>
				<td width="100px" >
					官方email<br>
				</td>
				<td class="top">
					<input name="WEB_SITE_EMAIL" style="width:300px" >
				</td>
				<td>
					<span class="explain">网站官方的Email，发送邮件时使用</span>
				</td>
			</tr>
			
			
		</table>
		<br/>
		<a name="icp"></a>
		<p class="h3">ICP备案</p>
		<table width="100%" >
			<tr>
				<td width="100px" class="top">
					备案代码<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_ICP_ID" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_ICP_ID')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_ICP_ID')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">ICP备案代码，如填写将显示在页面底部</span>
				</td>
			</tr>
			
		</table>

		<br/><a name="close"></a>
		<p class="h3">网站冻结和提示信息</p>
		<table width="100%" >
			<tr>
				<td width="100px" class="top">
					是否冻结<br>
				</td>
				<td class="top" width="300px">
					<input name="WEB_SITE_CLOSE" value="1" type="radio"><label for="WEB_SITE_CLOSE">冻结</label>&nbsp;&nbsp; 
					<input name="WEB_SITE_CLOSE" value="0" type="radio"><label for="WEB_SITE_CLOSE">开放</label>&nbsp;&nbsp; 
				</td>
				<td class="top">
					<span class="explain">网站冻结后，只有手工修改配置文件才能启动</span>
				</td>
			</tr>
			<tr>
				<td width="100px" class="top">
					冻结提示信息<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_CLOSE_INFO" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_CLOSE_INFO')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_CLOSE_INFO')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">网站冻结时显示给用户的提示信息</span>
				</td>
			</tr>
			<tr>
				<td width="100px" >
				</td>
				<td align="center">
					<span class="act"><a href="javascript:admin_setting_form.submit()"> 保存设置 </a></span><br/><br/>
				</td>
				<td>
				</td>
			</tr>
		</table>

		<br/><a name="reg_open"></a>
		<p class="h3">注册设置</p>
		<table width="100%" >
			<tr>
				<td width="100px" >
					是否开启注册<br>
				</td>
				<td class="top" width="300px">
					<input name="WEB_SITE_REGESTER_CLOSE" value="1" type="radio"><label for="WEB_SITE_REGESTER_CLOSE">冻结</label>&nbsp;&nbsp; 
					<input name="WEB_SITE_REGESTER_CLOSE" value="0" type="radio"><label for="WEB_SITE_REGESTER_CLOSE">开放</label>&nbsp;&nbsp; 
				</td>
				<td >
					<span class="explain">是否允许用户注册</span>
				</td>
			</tr>
			<tr>
				<td width="100px" class="top">
					注册关闭提示信息<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_REGESTER_CLOSE_INFO" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_REGESTER_CLOSE_INFO')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_REGESTER_CLOSE_INFO')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">注册关闭时显示给用户的提示信息</span>
				</td>
			</tr>
			</table>
			
<a name="reg_email"></a>
<p class="h3">Email注册设定</p>
		<table width="100%" >
			<tr>
				<td width="100px" class="top">
					允许的Email域名<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_EMAIL_ALLOW_LIST" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_EMAIL_ALLOW_LIST')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_EMAIL_ALLOW_LIST')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">只允许这些域名上的电子邮箱注册<br/>每行一个<br/> 不限制请留空</span>
				</td>
			</tr>
			<tr>
				<td width="100px" class="top">
					禁止的Email域名<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_EMAIL_DISALLOW_LIST" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_EMAIL_DISALLOW_LIST')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_EMAIL_DISALLOW_LIST')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">不允许这些域名上的电子邮箱注册<br/>每行一个<br/> 不限制请留空<br/>在允许列表为空时有效</span>
				</td>
			</tr>
			</table><a name="reg_name"></a>
			<p class="h3">保留用户名</p>
		<table width="100%" >
			<tr>
				<td width="100px" class="top">
					保留用户名<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_USER_NAME_DISALLOW_LIST" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_USER_NAME_DISALLOW_LIST')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_USER_NAME_DISALLOW_LIST')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">不允许用户注册的名字<br/>每行一个<br/> 不限制请留空<br/></span>
				</td>
			</tr>
			<tr>
				<td width="100px" >
				</td>
				<td align="center">
					<span class="act"><a href="javascript:admin_setting_form.submit()"> 保存设置 </a></span><br/><br/>
				</td>
				<td>
				</td>
			</tr>
		</table>

		<p class="h3">访问控制</p><a name="ip_allow"></a>
		<table width="100%" >
			<tr>
				<td width="100px" class="top">
					允许访问IP列表<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_IP_ALLOW_LIST" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_IP_ALLOW_LIST')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_IP_ALLOW_LIST')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">允许访问的IP地址列表<br/>每行一个<br/> 不限制请留空<br/></span>
				</td>
			</tr>
			<tr>
				<td width="100px" class="top"><a name="ip_disallow"></a>
					禁止访问IP列表<br>
				</td>
				<td class="top" width="300px">
					<textarea name="WEB_SITE_IP_DISALLOW_LIST" style="width:300px;height:80px" ></textarea>
					<br/><a href="javascript:zoomin('WEB_SITE_IP_DISALLOW_LIST')"><img src="res/img/admin/zoomin.gif" border="0"></a>&nbsp;<a href="javascript:zoomout('WEB_SITE_IP_DISALLOW_LIST')"><img src="res/img/admin/zoomout.gif" border="0"></a>
				</td>
				<td class="top">
					<span class="explain">禁止访问的IP地址列表<br/>每行一个<br/> 不限制请留空<br/>在允许列表为空时有效</span>
				</td>
			</tr>
			<tr>
				<td width="100px" >
				</td>
				<td align="center">
					<span class="act"><a href="javascript:admin_setting_form.submit()"> 保存设置 </a></span><br/><br/>
				</td>
				<td>
				</td>
			</tr>
		</table>
<a name="discuz"></a>
		<p class="h3">DISCUZ!整合</p>
		<table width="100%" >
				<tr>
				<td width="100px" class="top" >
					是否开启整合<br>
				</td>
				<td class="top" width="300px">
					<input name="DZ_ON" value="1" type="radio"><label for="DZ_ON">开放</label>&nbsp;&nbsp; 
					<input name="DZ_ON" value="0" type="radio"><label for="DZ_ON">关闭</label>&nbsp;&nbsp; 
				</td>
				<td class="top">
					<span class="explain">开启整合后可以实现用户的统一<br/> 在WebMagik和Discuz!间跳转可保持状态<br/>WebMagik的用户名将不可修改<br/>除了打开这个选项外 你还需要替换Discuz的几个文件(WebMagik提供)
					</span>
				</td>
			</tr>
			<tr>
				<td width="100px" class="top" >
					DB HOST<br>
				</td>
				<td class="top">
					<input name="DZ_DB_HOST" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">数据库服务器HOST地址<br/>如果不在同一台机器 需要有远程访问权限<br/>以下信息和Discuz!配置文件保持一致即可</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					DB 名<br>
				</td>
				<td class="top">
					<input name="DZ_DB_NAME" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">数据库名</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					DB 用户名<br>
				</td>
				<td class="top">
					<input name="DZ_DB_USER" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">数据库服务器用户名</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					DB 密码<br>
				</td>
				<td class="top">
					<input name="DZ_DB_PASS" style="width:300px" type="password">
				</td>
				<td class="top">
					<span class="explain">数据库服务器密码</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					DISCUZ!表前缀<br>
				</td>
				<td class="top">
					<input name="DZ_DB_PREFIX" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">DISCUZ!表名前缀</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					DISCUZ!URL<br>
				</td>
				<td class="top">
					<input name="DZ_INDEX_URL" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">DISCUZ!访问路径<br/>如 http://webmagik.cn/bbs 相对路径也可</span>
				</td>
			</tr>

			<tr>
				<td width="100px" class="top" >
					站务论坛ID<br>
				</td>
				<td class="top">
					<input name="DZ_SITE_FROUM_ID" style="width:300px" >
				</td>
				<td class="top">
					<span class="explain">用于拼接"站务论坛"的连接<br/>如果论坛的URL为 forumdisplay.php?fid=1 请填写 1</span>
				</td>
			</tr>

			<tr>
				<td width="100px" >
				</td>
				<td align="center"><br/>
					<span class="act"><a href="javascript:admin_setting_form.submit()"> 保存设置 </a></span><br/><br/>
				</td>
				<td>
				</td>
			</tr>
		</table>

		<a name="gzip"></a>
		<p class="h3">性能优化</p>
		<table width="100%" >
			<tr>
				<td width="100px" >
					是否启用GZip<br>
				</td>
				<td class="top" style="width:300px">
					<input name="WEB_SITE_USE_GZIP" value="1" type="radio"><label for="WEB_SITE_USE_GZIP">开放</label>&nbsp;&nbsp; 
					<input name="WEB_SITE_USE_GZIP" value="0" type="radio"><label for="WEB_SITE_USE_GZIP">关闭</label>&nbsp;&nbsp; 
				</td>
				<td>
					<span class="explain">使用GZip可以将内容压缩后传输给用户 减少网络传输时间</span>
				</td>
			</tr>
			<tr>
				<td width="100px" >
				</td>
				<td align="center"><br/>
					<span class="act"><a href="javascript:admin_setting_form.submit()"> 保存设置 </a></span><br/><br/>
				</td>
				<td>
				</td>
			</tr>
			
			
		</table>
		<br/>

		
		<script>
		<?php echo $set_js ?>
		</script>

		</td>
	</tr>
</table>
</form>
</body>

</html>